<h1>Chambre occupes List</h1>

<table>
  <thead>
    <tr>
      <th>Idchambre</th>
      <th>Datedebutoccup</th>
      <th>Datefinoccup</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($chambre_occupes as $chambre_occupe): ?>
    <tr>
      <td><a href="<?php echo url_for('ChambreOccupe/show?idchambre='.$chambre_occupe->getIdchambre().'&datedebutoccup='.$chambre_occupe->getDatedebutoccup().'&datefinoccup='.$chambre_occupe->getDatefinoccup()) ?>"><?php echo $chambre_occupe->getIdchambre() ?></a></td>
      <td><a href="<?php echo url_for('ChambreOccupe/show?idchambre='.$chambre_occupe->getIdchambre().'&datedebutoccup='.$chambre_occupe->getDatedebutoccup().'&datefinoccup='.$chambre_occupe->getDatefinoccup()) ?>"><?php echo $chambre_occupe->getDatedebutoccup() ?></a></td>
      <td><a href="<?php echo url_for('ChambreOccupe/show?idchambre='.$chambre_occupe->getIdchambre().'&datedebutoccup='.$chambre_occupe->getDatedebutoccup().'&datefinoccup='.$chambre_occupe->getDatefinoccup()) ?>"><?php echo $chambre_occupe->getDatefinoccup() ?></a></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('ChambreOccupe/new') ?>">New</a>
